\hypertarget{classresultsDB_1_1cResultsBucket}{\section{results\-D\-B\-:\-:c\-Results\-Bucket Class Reference}
\label{classresultsDB_1_1cResultsBucket}\index{results\-D\-B\-::c\-Results\-Bucket@{results\-D\-B\-::c\-Results\-Bucket}}
}


{\ttfamily \#include $<$results\-\_\-bucket.\-h$>$}



Collaboration diagram for results\-D\-B\-:\-:c\-Results\-Bucket\-:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=229pt]{classresultsDB_1_1cResultsBucket__coll__graph}
\end{center}
\end{figure}
\subsection*{Classes}
\begin{DoxyCompactItemize}
\item 
struct \hyperlink{structresultsDB_1_1cResultsBucket_1_1bucket__header__entry}{bucket\-\_\-header\-\_\-entry}
\end{DoxyCompactItemize}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{classresultsDB_1_1cResultsBucket_a959c37146bc088b2d8d69d51c63ae227}{c\-Results\-Bucket} (std\-::size\-\_\-t code)
\item 
\hypertarget{classresultsDB_1_1cResultsBucket_af6c2a4b7bc33ba06861ddb123a79f2be}{bool {\bfseries Get\-Result} (const std\-::size\-\_\-t hash, const std\-::string \&params, std\-::string \&result) const }\label{classresultsDB_1_1cResultsBucket_af6c2a4b7bc33ba06861ddb123a79f2be}

\item 
\hypertarget{classresultsDB_1_1cResultsBucket_a757169c7e12fe6db9f46ee889b34cd8b}{unsigned short {\bfseries Get\-Index\-Bits\-Sz} () const }\label{classresultsDB_1_1cResultsBucket_a757169c7e12fe6db9f46ee889b34cd8b}

\item 
\hypertarget{classresultsDB_1_1cResultsBucket_abf3099f9714a88cecc53f8211355e791}{const std\-::size\-\_\-t {\bfseries Get\-Code} () const }\label{classresultsDB_1_1cResultsBucket_abf3099f9714a88cecc53f8211355e791}

\item 
std\-::unique\-\_\-ptr$<$ \hyperlink{classresultsDB_1_1cResultsBucket}{c\-Results\-Bucket} $>$ \hyperlink{classresultsDB_1_1cResultsBucket_a280d00036ff59351e330b14eec2a070f}{Save\-Result} (const std\-::size\-\_\-t hash, const std\-::string \&params, const std\-::string \&result)
\end{DoxyCompactItemize}
\subsection*{Private Member Functions}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classresultsDB_1_1cResultsBucket_a38e798e137591db9b45f74383b06e86e}{{\bfseries c\-Results\-Bucket} (const \hyperlink{classresultsDB_1_1cResultsBucket}{c\-Results\-Bucket} \&)}\label{classresultsDB_1_1cResultsBucket_a38e798e137591db9b45f74383b06e86e}

\item 
\hypertarget{classresultsDB_1_1cResultsBucket_afff806e1e24a90c60174893b0288307f}{\hyperlink{classresultsDB_1_1cResultsBucket}{c\-Results\-Bucket} \& \hyperlink{classresultsDB_1_1cResultsBucket_afff806e1e24a90c60174893b0288307f}{operator=} (const \hyperlink{classresultsDB_1_1cResultsBucket}{c\-Results\-Bucket} \&)}\label{classresultsDB_1_1cResultsBucket_afff806e1e24a90c60174893b0288307f}

\begin{DoxyCompactList}\small\item\em !!!only used internally -\/ keeps the same filename and copy only the contents \end{DoxyCompactList}\item 
\hypertarget{classresultsDB_1_1cResultsBucket_af8fa946826308b7353d5d9b2ba839257}{std\-::unique\-\_\-ptr$<$ \hyperlink{classresultsDB_1_1cResultsBucket}{c\-Results\-Bucket} $>$ {\bfseries Split} ()}\label{classresultsDB_1_1cResultsBucket_af8fa946826308b7353d5d9b2ba839257}

\item 
\hypertarget{classresultsDB_1_1cResultsBucket_ae5ea37bc3749dd9efe24d71c5081299a}{bool {\bfseries Get\-Index\-Bit} (const std\-::size\-\_\-t hash) const }\label{classresultsDB_1_1cResultsBucket_ae5ea37bc3749dd9efe24d71c5081299a}

\item 
\hypertarget{classresultsDB_1_1cResultsBucket_ae0c6adba5349cf2b13150f1db7f62637}{std\-::size\-\_\-t {\bfseries Get\-First\-Bits} (const std\-::size\-\_\-t hash) const }\label{classresultsDB_1_1cResultsBucket_ae0c6adba5349cf2b13150f1db7f62637}

\end{DoxyCompactItemize}
\subsection*{Private Attributes}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classresultsDB_1_1cResultsBucket_a018ded0e19c66afe11a857e02ae1720d}{std\-::size\-\_\-t {\bfseries m\-\_\-\-Code}}\label{classresultsDB_1_1cResultsBucket_a018ded0e19c66afe11a857e02ae1720d}

\item 
\hypertarget{classresultsDB_1_1cResultsBucket_ac509595a30d4e9423c5f8f71c34b5713}{boost\-::iostreams\-::mapped\-\_\-file {\bfseries m\-\_\-\-Mapped\-File}}\label{classresultsDB_1_1cResultsBucket_ac509595a30d4e9423c5f8f71c34b5713}

\item 
\hypertarget{classresultsDB_1_1cResultsBucket_a2ae295fcd93a98f9c80b6d96e336a9d6}{unsigned short {\bfseries m\-\_\-\-Index\-Bits\-Sz}}\label{classresultsDB_1_1cResultsBucket_a2ae295fcd93a98f9c80b6d96e336a9d6}

\item 
\hypertarget{classresultsDB_1_1cResultsBucket_aaea6a88e08d0601845161aad02dc7c7b}{std\-::size\-\_\-t {\bfseries m\-\_\-\-End}}\label{classresultsDB_1_1cResultsBucket_aaea6a88e08d0601845161aad02dc7c7b}

\item 
\hypertarget{classresultsDB_1_1cResultsBucket_a42d5201e7159db580e9ca8c459df97e9}{struct \hyperlink{structresultsDB_1_1cResultsBucket_1_1bucket__header__entry}{bucket\-\_\-header\-\_\-entry} $\ast$ {\bfseries m\-\_\-\-Header\-Entry}}\label{classresultsDB_1_1cResultsBucket_a42d5201e7159db580e9ca8c459df97e9}

\item 
\hypertarget{classresultsDB_1_1cResultsBucket_aef2a7bf395f5d6a760934f849a89b023}{std\-::size\-\_\-t {\bfseries m\-\_\-\-Entries}}\label{classresultsDB_1_1cResultsBucket_aef2a7bf395f5d6a760934f849a89b023}

\end{DoxyCompactItemize}


\subsection{Detailed Description}
bucket for implementing the database(extendible hashing) that holds the result of presiously received commands 

\subsection{Constructor \& Destructor Documentation}
\hypertarget{classresultsDB_1_1cResultsBucket_a959c37146bc088b2d8d69d51c63ae227}{\index{results\-D\-B\-::c\-Results\-Bucket@{results\-D\-B\-::c\-Results\-Bucket}!c\-Results\-Bucket@{c\-Results\-Bucket}}
\index{c\-Results\-Bucket@{c\-Results\-Bucket}!resultsDB::cResultsBucket@{results\-D\-B\-::c\-Results\-Bucket}}
\subsubsection[{c\-Results\-Bucket}]{\setlength{\rightskip}{0pt plus 5cm}results\-D\-B\-::c\-Results\-Bucket\-::c\-Results\-Bucket (
\begin{DoxyParamCaption}
\item[{std\-::size\-\_\-t}]{code}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [explicit]}}}\label{classresultsDB_1_1cResultsBucket_a959c37146bc088b2d8d69d51c63ae227}
opens the memory mapped file with the specified name if the newfile argument==true creates a new memory mapped file 

\subsection{Member Function Documentation}
\hypertarget{classresultsDB_1_1cResultsBucket_a280d00036ff59351e330b14eec2a070f}{\index{results\-D\-B\-::c\-Results\-Bucket@{results\-D\-B\-::c\-Results\-Bucket}!Save\-Result@{Save\-Result}}
\index{Save\-Result@{Save\-Result}!resultsDB::cResultsBucket@{results\-D\-B\-::c\-Results\-Bucket}}
\subsubsection[{Save\-Result}]{\setlength{\rightskip}{0pt plus 5cm}std\-::unique\-\_\-ptr$<$ {\bf c\-Results\-Bucket} $>$ results\-D\-B\-::c\-Results\-Bucket\-::\-Save\-Result (
\begin{DoxyParamCaption}
\item[{const std\-::size\-\_\-t}]{hash, }
\item[{const std\-::string \&}]{params, }
\item[{const std\-::string \&}]{result}
\end{DoxyParamCaption}
)}}\label{classresultsDB_1_1cResultsBucket_a280d00036ff59351e330b14eec2a070f}
appends the result in the memory mapped file and returns a pointer to a new bucket if a split is needed the new bucket contains the entries that have the next bit 1 

The documentation for this class was generated from the following files\-:\begin{DoxyCompactItemize}
\item 
results\-\_\-bucket.\-h\item 
results\-\_\-bucket.\-cpp\end{DoxyCompactItemize}
